package nc.gk.gkxm.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import nc.gk.gkxm.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "测试接口")
@RestController
@RequestMapping("/test/api/main")
public class TestController {

    @ApiOperation("测试接口")
    @GetMapping("test1")
    public Result test1(){
        return Result.ok("成功访问");
    }

    @ApiOperation("测试接口1")
    @GetMapping("test2")
    public Result test2(){
        return Result.ok("成功2访问");
    }

    @ApiOperation("测试接口1")
    @GetMapping("test3")
    public Result test3(){
        return Result.ok("成功3访问");
    }
}
